package com.service;

import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;

import com.dao.UsersDao;
import com.pojo.Users;
import com.util.MybatisSessionFactory;

public class UsersService {
	SqlSession session = MybatisSessionFactory.getSqlSession();
	UsersDao dao = session.getMapper(UsersDao.class);

	// 登录方法
	public Users query_login(@Param("account") String account,
			@Param("password") String password) {
		return dao.query_login(account, password);
	};

	// 查询用户信息
	public Map<String, Object> queryuser(@Param("id") String id) {

		return dao.queryuser(id);

	}
}
